<?php
class Admin_home extends CI_Controller {

    const VIEW_FOLDER = 'admin';
 
    public function __construct()
    {
        parent::__construct();
		$this->load->model('admin/model_admin');

		if($this->session->userdata('is_logged_in')=="user"){
			redirect('user/test');
        }else if(!$this->session->userdata('is_logged_in')){
			redirect('user/login');
        }
    }
 
    public function index()
    {
		$config['base_url']		 = base_url().'admin/home';
		$data['title']				 = "Automatic Essay Scoring";
		$data['main_content']	 = 'admin/view_admin_beranda';
		$this->load->view('includes/template_admin', $data);
    }
	
}